<div class='fui-page fui-page-current member-log-page'>
	<div class="fui-header">
        <div class="fui-header-left">
            <a class="back" ng-click='goback()'></a>
        </div>
        <div class="title">记录</div>
    </div>
    <div class='fui-content' >
		<div class="fui-tab fui-tab-success">
			<a ng-class="{'active':pagedata.params.type==0}" href="javascript:;" ng-click="pagedata.params.type=0;pagedata.get_list()">参与记录</a>
			<a ng-class="{'active':pagedata.params.type==1}" href="javascript:;" ng-click="pagedata.params.type=1;pagedata.get_list()">建仓收益</a>
			<a ng-class="{'active':pagedata.params.type==2}" href="javascript:;" ng-click="pagedata.params.type=2;pagedata.get_list()">团长收益</a>
			<a ng-class="{'active':pagedata.params.type==3}" href="javascript:;" ng-click="pagedata.params.type=3;pagedata.get_list()">信息记录</a>
		</div>
        <div class='content-empty' ng-show="!pagedata.list || pagedata.list.length<=0">
            <i class='fa fa-comment-o'></i><br/>暂时没有任何记录!
        </div>
		<div class="fui-cell-group merchgroup" ng-repeat="item in pagedata.list">
            <div class="fui-cell" >
				<div class="fui-cell-label" style="width:2.5rem">
					<img ng-src="{{tomedia(item.member.avatar) ||'../core/resource/images/nopic.jpg'}}" class="round" style="width:2rem;height:2rem">
				</div>
                <div class="fui-cell-text" style="margin-top:0.16rem;">
                    <div class="title bold" style="font-size:0.76rem;padding-bottom:0.2rem"><span>{{item.title || item.member.nickname}}</span></div>
					<div ng-if="pagedata.params.type==0" class="subtitle" style="font-size:0.7rem">
						投入<span class="red">{{item.jifen ||0}}</span>个积分
						<span ng-if="item.jian_getrate" style="margin-left:0.3rem">排单收益<span class="red">{{item.jian_getrate}}%</span></span>
					</div>
					<div ng-if="pagedata.params.type==1" class="subtitle" style="font-size:0.7rem">
						收益<span class="red">{{item.jifen ||0}}</span>个金豆
					</div>
					<div ng-if="pagedata.params.type==2" class="subtitle" style="font-size:0.7rem">
						奖励<span class="red">{{item.jifen ||0}}</span>个金豆
						<div class="subtitle" style="font-size:0.5rem">
						{{item.cangtitle}}{{item.yaotitle}}
						</div>
					</div>
					<div ng-if="pagedata.params.type==3" class="subtitle" style="font-size:0.7rem">
						额度<span class="red">{{item.fee ||0}}</span>
					</div>
					<div class="subtitle" style="font-size:0.7rem">
						{{item.createtime}}
					</div>
				</div>
				<div class="fui-cell-remark noremark">
					<div class="label label-info">{{item.statustitle}}</div>
				</div>
            </div>
		</div>
    </div>
</div>
<script>
var action='jy_lianmerch/mjicai/getlist/'
scope.pagedata.get_list=function(){
	if(scope.pagedata.params.type==0){
		action='jy_lianmerch/mjicai/getlist/'
	}else if(scope.pagedata.params.type==1){
		action='jy_lianmerch/mjicai/getlist1/'
	}else if(scope.pagedata.params.type==2){
		action='jy_lianmerch/mjicai/getlist2/'
	}else if(scope.pagedata.params.type==3){
		action='jy_lianmerch/mjicai/getlist3/'
	}
	scope.tool.get_list(action,true);
}
scope.tool.get_list(action,true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list(action);
}
</script>